---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a3.log
  log type:  text
 opened on:  11 Jun 2020, 12:36:21

. 
. use "$path/foreclosures_analysis.dta", clear

. 
. // lagged dv setup
. replace lag_pres = lag_pres * 100
(9,540 real changes made)

. 
. // trump effect
. 
. gen trump = year == 2016

. gen fore_trump = foreclosure_rate*trump

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs lag_pres foreclosure_rate fore_trump trump [aw=pop_y], a(sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,536
Absorbing 1 HDFE group                          Replications      =      1,000
                                                Wald chi2(3)      =   35816.63
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9688
                                                Adj R-squared     =     0.9681
                                                Root MSE          =     2.8057

                                    (Replications based on 2,839 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        lag_pres |   1.068425   .0057966   184.32   0.000     1.057064    1.079786
foreclosure_rate |   .1110757   .0671732     1.65   0.098    -.0205814    .2427327
      fore_trump |  -1.696272    .225243    -7.53   0.000     -2.13774   -1.254804
           trump |          0  (omitted)
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
              sy |          196             196              0     | 
-------------------------------------------------------------------+

. local b1 = _b[lag_pres]

. local se1 = _se[lag_pres]

. local b1_2 = _b[foreclosure_rate]

. local se1_2 = _se[foreclosure_rate]

. local bint1 = _b[fore_trump]

. local seint1 = _se[fore_trump]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs lag_pres foreclosure_rate fore_trump trump [aw=pop_y], a(popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,540
Absorbing 1 HDFE group                          Replications      =      1,000
                                                Wald chi2(3)      =   21883.51
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9549
                                                Adj R-squared     =     0.9547
                                                Root MSE          =     3.3664

                                    (Replications based on 2,840 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        lag_pres |   .9892898   .0068844   143.70   0.000     .9757966    1.002783
foreclosure_rate |  -.0000897   .0459884    -0.00   0.998    -.0902253     .090046
      fore_trump |  -1.162516   .1549636    -7.50   0.000    -1.466239   -.8587931
           trump |          0  (omitted)
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
         popyear |           40              40              0     | 
-------------------------------------------------------------------+

. local b2 = _b[lag_pres]

. local se2 = _se[lag_pres]

. local b2_2 = _b[foreclosure_rate]

. local se2_2 = _se[foreclosure_rate]

. local bint2 = _b[fore_trump]

. local seint2 = _se[fore_trump]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a3.log
  log type:  text
 closed on:  11 Jun 2020, 12:39:13
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
